const path = require('path');
const fs = require('fs');
const webpack = require('webpack');
const HTMLWebpackPlugin = require('html-webpack-plugin');
const ZonnarPlugin = require('./src/plugins/index.js')

module.exports = {
    mode:'none',
    entry:"./src/index.js",
    output:{
        path: path.resolve(__dirname, './dist'),
        filename:"bundle.[hash:8].js"
    },
    module:{
        rules:[
            {
                test: /\.js$/,
                use:[
                    { loader: 'babel-loader'},
                ],
                exclude: /node_modules/
            }
        ]
    },
    plugins:[
        new webpack.ProgressPlugin(),
        new HTMLWebpackPlugin({ template: './public/index.html'}),
        new ZonnarPlugin({
            outputFile: 'assets.md'
        }),

    ]
}